import 'package:dio/dio.dart';

class UploadRequest {
  final String path;
  final String name;
  var cancelToken = CancelToken();

  UploadRequest(
    this.path,
    this.name,
  );

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is UploadRequest && runtimeType == other.runtimeType && path == other.path && name == other.name;

  @override
  int get hashCode => path.hashCode ^ name.hashCode;
}
